clear;
clc;
%addpath(fullfile(pwd, '..', 'lib'));
dataset={'RELATHE_1427n_4322d_2c','BASEHOCK_1993n_4862d_2c'};
for i1=1:length(dataset)
  load(dataset{i1});
  X=tfidf(X);
  if exist('y', 'var')
    Y = y;
  end
  save([dataset{i1},'_','tfidf_uni.mat'], 'X', 'Y');
end
%%
clear;
clc;
datasets ={'ALLAML_72n_7129d_2c','bbcnewssport_737n_1000d_5c_uni',...
    'COIL20_1440n_1024d_20c','BASEHOCK_1993n_4862d_2c_tfidf_uni',...
    'leukemia_72n_7070d_2c','RELATHE_1427n_4322d_2c_tfidf_uni',...
    'UMIST_575n_644d_20c','warpPIE10P_210n_2420d_10c',...
    };
for i1 =1:length(datasets)
    dn = datasets{i1};
   buildKernels_v2(dn);
end